import type { PropType } from 'vue'
import type { FieldListItem } from './types'
import { rowProps } from 'element-plus/es/components/row/src/row'
import { colProps } from 'element-plus/es/components/col/src/col'
import { formProps } from 'element-plus/es/components/form/src/form'

export default {
  formData: {
    type: Object,
    required: true
  },
  fieldList: {
    type: Array as PropType<FieldListItem[]>,
    required: true
  },
  /** 栅格间隔 Row Attributes  */
  ...rowProps,
  /** 栅格间隔 Col Attributes  */
  ...colProps,
  /** Form Attributes */
  ...formProps
}

export { rowProps, colProps, formProps }
